package pfc.aviloc.error;

import pfc.aviloc.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class ErrorActivity extends Activity {
	Button button;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		System.gc();
		
		setContentView(R.layout.error_xml);
		TextView textview = (TextView) findViewById(R.id.error_text_id);
		
		String errorMessage = getIntent().getStringExtra(this.getResources().getString(R.string.error_mensage_intent));
		textview.setText(errorMessage);
		
		button = (Button) findViewById(R.id.error_boton_ok_id);
		button.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				finish();
			}
		});
	}
}